package jykim;

public class AddEven {

	private int number;
	private int sum;
	
	public AddEven(){
		this(100);
	}
	
	public AddEven(int n){
		number = n;
	}
	
	public void addTotal(){
		for (int i = 1; i <= number; i++) {
			sum += i;
		}
	}
	
	public void print(){
		System.out.println(sum);
	}
}
